﻿// Copyright (C) Jari Hautio <jari.hautio@iki.fi> 2008. Licensed under GPLv2. See LICENSE.txt in solution folder.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RyijyApp
{
    public partial class HelpForm : Form
    {
        public HelpForm()
        {
            InitializeComponent();
        }

        private void HelpForm_Load(object sender, EventArgs e)
        {
            string file = "";
            try
            {

                if (System.Threading.Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName == "fi")
                {
                    file = "RyijyOhjeet.htm";
                }
                else
                {
                    file = "RyijyUserManual.htm";
                }
                string path = Application.StartupPath + "\\manual\\" ;
                webBrowser1.Navigate(path+ file);
    
                Text = "RyijyApp - " + file;
            }
            catch (Exception)
            {
            }
        }
    }
}
